//Write a program to find whether a given number is prime or not.
class prog1
	{
	public static void main(String args[])
		{
		int num=1025, count=0,i;
		for(i=1; i<num; i++)
			{
			//if(count<=1)
				if(num%i==0)
					count++;
			}
		if(count>1)
			System.out.println(num + " is not prime.");
		else 
			System.out.println(num + " is prime.");
		}
	}
			 